﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Services
{
    /// <summary>
    /// API返回结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class APIResult
    {
        /// <summary>
        /// 返回 编码
        /// </summary>
        public EnumCode Code { get; set; }
        /// <summary>
        /// 返回 消息
        /// </summary>
        public string Msg { get; set; }
    }

    public class APIResult<T> : APIResult
    {

        /// <summary>
        /// 返回 数据
        /// </summary>
        public T Data { get; set; }

    }
    public enum EnumCode
    {
        Success,
        Fail,
    }
}
